package com.croofr.dao.service;

import com.croofr.dao.service.implementation.database.dialect.OracleDialect;

/**
 * Type of Generic dao. All this types are implemented.
 * <p/>
 * User: bednar<br/>
 * Date: Feb 3, 2010<br/>
 * Time: 10:25:19 PM
 */
public enum PersistentType
{
    /**
     * Type for Oracle relational database
     */
    DB_ORACLE
            {
                @Override
                public Dialect getDialect()
                {
                    return new OracleDialect();
                }
            };

    public abstract Dialect getDialect();

    public String value()
    {
        return this.toString();
    }
}
